vchiq_arm: Avoid use of mutex in add_completion
authorPhil Elwell <phil@raspberrypi.org>
Mon, 20 Jun 2016 12:51:44 +0000 (13:51 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 00:59:58 +0000 (00:59 +0000)
commitadfc6af9637da0b088e1d95e5c1cf0aca706d5dd
tree5acdce9b0b434713bb2e1fefca5f165d2f939351
parent53aaa0bfed8a7c69eb8a4d9732acde1b7cc4dd30
vchiq_arm: Avoid use of mutex in add_completion

Claiming the completion_mutex within add_completion did prevent some
messages appearing twice, but provokes a deadlock caused by vcsm using
vchiq within a page fault handler.

Revert the use of completion_mutex, and instead fix the original
problem using more memory barriers.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c